<style>
#issuePutniNalog label{
	width:100px;
}
#issuePutniNalog input[type=text],
#issuePutniNalog textarea{
	width:200px;
}
#issuePutniNalog input[type=text].short{
	width:50px;
}
#issuePutniNalog input[type=text].dateInput{
	width:65px;
}
</style>
<h1>Izdavanje putnih naloga</h1>
<form id="issuePutniNalog" method="post" action="javascript:void(0)" onsubmit="submitForm(this,'putni_nalozi.php','POST','afterIssuePutniNalog',1)" class="area">
	
	<input type="hidden" name="a" value="addIssue" />

	<label for="broj" class="left">Broj naloga:</label><input type="text" name="broj" id="broj" class="short" /><br clear="all" />
	
	<label for="radnik" class="left">Radnik:</label>
	<select name="radnik" id="radnik">
		{{%loop start radnik_id}}
		<option value="{{$radnik_id}}">{{$radnik_ime}}&nbsp;{{$radnik_prezime}}</option>
		{{%loop end}}
	</select>
	<br clear="all" />
	
	<label for="relacija" class="left">Relacija:</label><textarea name="relacija" id="relacija"></textarea><br clear="all" />
	
	<label for="garbr" class="left">Vozilo:</label>
	<select name="garbr" id="garbr" onchange="setRegBr(this)">
		{{%loop start gar}}
		<option value="{{$gar}}">{{$gar}}</option>
		{{%loop end}}
	</select>
	<select name="regbr" id="regbr" disabled="disabled">
		{{%loop start reg}}
		<option value="{{$reg}}" gar="{{$gar}}">{{$reg}}</option>
		{{%loop end}}
	</select><br clear="all" />
	
	
	<label for="napomena" class="left">Napomena:</label><textarea name="napomena" id="napomena"></textarea><br clear="all" />
	
	<br clear="all" />
	<input type="submit" value="izdaj" />

</form>